package com.zzxy.spring34.service.impl;

import com.zzxy.spring34.dao.IAccountDao;
import com.zzxy.spring34.service.IAccountService;

public class AccountServiceImp implements IAccountService {
    private IAccountDao accountDao;

    public IAccountDao getAccountDao() {
        return accountDao;
    }

    public void setAccountDao(IAccountDao accountDao) {
        this.accountDao = accountDao;
    }

    @Override
    public void transer(String outer, String inner, int money) {
        accountDao.out(outer, money);
        accountDao.in(inner, money);

    }
}
